package com.miao.hong.fang.user;

import java.io.Serializable;
import java.sql.Timestamp;

import com.miao.hong.fang.IConstants;
import com.miao.hong.fang.util.Utils;

public class UserSubscribeCourseTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8234758234870379185L;
	private String userId;
	private String courseId;
	private String createdBy;
	private Timestamp createdDt;
	private String updatedBy;
	private Timestamp updatedDt;
	private int version;
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getCourseId() {
		return courseId;
	}
	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	public Timestamp getCreatedDt() {
		return createdDt;
	}
	public void setCreatedDt(Timestamp createdDt) {
		this.createdDt = createdDt;
	}
	public String getUpdatedBy() {
		return updatedBy;
	}
	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}
	public Timestamp getUpdatedDt() {
		return updatedDt;
	}
	public void setUpdatedDt(Timestamp updatedDt) {
		this.updatedDt = updatedDt;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	
	public String getCreatedDtAsStr() {
		return Utils.timestampToString(createdDt, IConstants.COURSE_START_TIME_FORMAT);
	}
	
	private String courseTitle;
	public String getCourseTitle() {
		return courseTitle;
	}
	public void setCourseTitle(String courseTitle) {
		this.courseTitle = courseTitle;
	}
	
}
